<script lang="ts" setup>
import { computed } from 'vue';
import ApplicationMenu from './application-menu.vue';
import SystemMenu from './system-menu.vue';
import { useAppStore } from '@/stores/app';

const appStore = useAppStore();

const currentAppKey = computed(() => appStore.currentAppKey);
</script>

<template>
  <SidebarContent>
    <ApplicationMenu v-if="currentAppKey === 'knowledge-management'" />
    <SystemMenu v-if="currentAppKey === 'system-management'" />
  </SidebarContent>
</template>
